Drag and drop table rows and save position in database